Get Contracts
GEThttps://public.api.mentaport.xyz/prod/v1/contracts
The function returns your active contracts by default. If allContracts
is set to true, it will return all contracts, including both active and paused.
Request
Responses
- 200
Successful response
Authorization: http
name: apikeyAuthtype: httpin:
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://public.api.mentaport.xyz/prod/v1/contracts");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear